package com.usian.controller;

import com.usian.feign.ItemFeign;
import com.usian.pojo.TbItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/frontend/item")
public class ItemController {
    @Autowired
    private ItemFeign itemFeign;

    @RequestMapping("selectItemInfo")
    public TbItem selectItemInfo(@RequestParam Long itemId){
        return  itemFeign.selectItemInfo(itemId);
    }
}
